<template>
  <div class="suggestion-list">
    <el-table :data="dataarr" border style="width: 100%">
      <el-table-column prop="createDate" label="提交时间" width="150"></el-table-column>
      <el-table-column label="截图" width="120">
        <template v-slot="{ row }">
          <img :src="row.questionImgUrlsPrivate" alt />
        </template>
      </el-table-column>
      <el-table-column prop="questionDesc" label="问题描述" width="220"></el-table-column>
      <el-table-column prop="sellerName" label="处理人" width="240"></el-table-column>
      <el-table-column prop="result" label="处理结果">
        <template v-slot="{ row }">
          <span v-if="row.isReplay === 1" style="color: red;">已回复</span>
          <span v-else>未处理</span>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  props: {
    dataarr: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.el-table {
  font-size: 12px;

  img {
    width: 40px;
  }
}
</style>
